package com.wxzhou.wangzhuan.dto;

import jakarta.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;

/**
 * 设备基本信息，带渠道
 */
public class DeviceBaseInfo extends CommonRequestDto {

    //渠道
    @NotNull(message = "渠道不能为空")
    @Length(min = 1, max = 100, message = "渠道长度1-100")
    private String channel;

    //设备
    @NotNull(message = "设备不能为空")
    @Length(min = 2, max = 100, message = "设备长度2-100")
    private String deviceid;

    public DeviceBaseInfo() {
    }

    public String getChannel() {
        return channel;
    }

    public void setChannel(String channel) {
        this.channel = channel;
    }

    public String getDeviceid() {
        return deviceid;
    }

    public void setDeviceid(String deviceid) {
        this.deviceid = deviceid;
    }
}
